home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / libpisock9.preinst < prev    next >
Encoding:
Text File  |  2010-02-11  |  1.3 KB  |  36 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installudev
  4. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  5.     if [ -e "/etc/udev/rules.d/z60_libpisock9.rules" ]; then
  6.         if [ "`md5sum \"/etc/udev/rules.d/z60_libpisock9.rules\" | sed -e \"s/ .*//\"`" = \
  7.              "`dpkg-query -W -f='${Conffiles}' libpisock9 | sed -n -e \"\\\\' /etc/udev/rules.d/z60_libpisock9.rules '{s/ obsolete$//;s/.* //p}\"`" ]
  8.         then
  9.             rm -f "/etc/udev/rules.d/z60_libpisock9.rules"
  10.         fi
  11.     fi
  12. fi
  13. # End automatically added section
  14. # Automatically added by dh_installmodules
  15. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  16.     if [ -e "/etc/modprobe.d/libpisock9" ]; then
  17.         if [ "`md5sum \"/etc/modprobe.d/libpisock9\" | sed -e \"s/ .*//\"`" = \
  18.              "`dpkg-query -W -f='${Conffiles}' libpisock9 | sed -n -e \"\\\\' /etc/modprobe.d/libpisock9 '{s/ obsolete$//;s/.* //p}\"`" ]
  19.         then
  20.             rm -f "/etc/modprobe.d/libpisock9"
  21.         fi
  22.     fi
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_installmodules
  26. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  27.     if [ -e "/etc/modprobe.d/libpisock9" ]; then
  28.         if [ "`md5sum \"/etc/modprobe.d/libpisock9\" | sed -e \"s/ .*//\"`" = \
  29.              "`dpkg-query -W -f='${Conffiles}' libpisock9 | sed -n -e \"\\\\' /etc/modprobe.d/libpisock9 '{s/ obsolete$//;s/.* //p}\"`" ]
  30.         then
  31.             rm -f "/etc/modprobe.d/libpisock9"
  32.         fi
  33.     fi
  34. fi
  35. # End automatically added section
  36.